package traveler.activities;

import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

public class AnswerActivity extends Activity
{
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        
		super.onCreate(savedInstanceState);
		setContentView(R.layout.answer_step);
		
		Bundle bundle = getIntent().getExtras();
		
		ImageView imgView = (ImageView)findViewById(R.id.answer_imgView);
		imgView.setImageResource(bundle.getInt("image"));
		
		TextView lblInfo = (TextView)findViewById(R.id.answer_lblInfo);
		
		if(bundle.getInt("image") == R.drawable.bad_answer)
			lblInfo.setText(getString(R.string.bad_answer));
	}
}
